package com.yunhui.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;


import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;


/**
 * <p>
 * 订单表
 * </p>
 *
 * @author WGH
 * @since 2019-12-09
 */
@TableName("`order`")
public class Order extends Model<Order> {

    private static final long serialVersionUID = 1L;

    /**
     * 订单编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 用户编号
     */

    private Integer uid;
    /**
     * 具体行程id
     */
    private Integer sid;
    /**
     * 订单的描述
     */
    private String info;
    /**
     * 此次的订单价格
     */
    private BigDecimal price;

    /**
     * 行程日期
     */
    private Date o_date;

    /**
     * 订单的状态
     */
    private Integer status;

    /**
     * 订单备注
     */
    private String remark;

    /**
     *用户姓名
     */
    private String userName;

    /**
     * O_time
     * @return
     */
    private String O_time;


    @TableField(exist = false)
    private String imgName1;

    @TableField(exist = false)
    private String title;

    @TableField(exist = false)
    private Date startTimes;

    //订单单价
    private BigDecimal djPrice;
    //出发城市
    private String origin;
    //订单游客人数
    private Integer peopleCount;

    public Integer getPeopleCount() {
        return peopleCount;
    }

    public void setPeopleCount(Integer peopleCount) {
        this.peopleCount = peopleCount;
    }

    public String getOrigin() {
        return origin;
    }

    public void setOrigin(String origin) {
        this.origin = origin;
    }

    public BigDecimal getDjPrice() {
        return djPrice;
    }

    public void setDjPrice(BigDecimal djPrice) {
        this.djPrice = djPrice;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Date getStartTimes() {
        return startTimes;
    }

    public void setStartTimes(Date startTimes) {
        this.startTimes = startTimes;
    }

    public String getImgName1() {
        return imgName1;
    }

    public void setImgName1(String imgName1) {
        this.imgName1 = imgName1;
    }


    public String getO_time() {
        return O_time;
    }

    public void setO_time(String o_time) {
        O_time = o_time;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Integer getSid() {
        return sid;
    }

    public void setSid(Integer sid) {
        this.sid = sid;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }


    public Date getO_date() {
        return o_date;
    }

    public void setO_date(Date o_date) {
        this.o_date = o_date;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Order{" +
                "id=" + id +
                ", uid=" + uid +
                ", sid=" + sid +
                ", info='" + info + '\'' +
                ", price=" + price +
                ", o_date='" + o_date + '\'' +
                ", status=" + status +
                ", remark='" + remark + '\'' +
                ", userName='" + userName + '\'' +
                ", O_time='" + O_time + '\'' +
                ", imgName1='" + imgName1 + '\'' +
                ", title='" + title + '\'' +
                ", startTimes=" + startTimes +
                ", djPrice=" + djPrice +
                ", origin='" + origin + '\'' +
                ", peopleCount=" + peopleCount +
                '}';
    }
}
